package com.zbkj.service.service;

import com.zbkj.common.request.PageParamRequest;
import com.zbkj.common.model.agent.UserStoreRelation;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zbkj.common.request.UserStoreRelationSaveRequest;
import com.zbkj.common.request.UserStoreRelationSearchRequest;
import com.zbkj.common.response.UserStoreRelationPageDataResponse;
import com.zbkj.common.response.UserStoreRelationDetailResponse;

import java.util.List;
/**
* @author Caiyc
* @description UserStoreRelationService 接口
* @date 2025-07-28
*/
public interface UserStoreRelationService extends IService<UserStoreRelation> {

    Boolean create(UserStoreRelationSaveRequest userStoreRelationSaveRequest);

    /**
     * 分页查询用户店铺关系表
     * @param request 查询条件
     * @param pageParamRequest 分页对行
     * @return 查询结果
     */
    List<UserStoreRelationPageDataResponse> getList(UserStoreRelationSearchRequest request, PageParamRequest pageParamRequest);

    /**
    * 修改用户店铺关系表
    * @param userStoreRelationRequest
    * @return
    */
    boolean update(UserStoreRelationSaveRequest userStoreRelationRequest);

    /**
    * 批量删除
    * @param idList
    * @return
    */
    boolean batchDelete(List<Integer> idList);

    /**
    * 查询溯源套餐表详情
    * @param id
    * @return
    */
    UserStoreRelationDetailResponse getDetails(Integer id);

    UserStoreRelation getByUid(Integer uid);
}